package com.hzy.oms.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 oms_order
 *
 * @author zengxin
 * @date 2023-10-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("oms_order")
public class OrderInfo extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 订单id
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 订单编号
     */
    private String orderSn;
    /**
     * 支付id
     */
    private Long payId;
    /**
     * 会员id
     */
    private Long memberId;
    /**
     * 用户帐号
     */
    private String memberUsername;
    /**
     * 订单总金额
     */
    private BigDecimal totalAmount;
    /**
     * 采购价
     */
    private BigDecimal purchasePrice;
    /**
     * 应付金额
     */
    private BigDecimal payAmount;
    /**
     * 运费金额
     */
    private BigDecimal freightAmount;
    /**
     * 支付方式
     */
    private Integer payType;
    /**
     * 订单状态
     */
    private Integer status;
    /**
     * 退款状态
     */
    private Integer aftersaleStatus;
    /**
     * 物流公司
     */
    private String deliveryCompany;
    /**
     * 物流单号
     */
    private String deliverySn;
    /**
     * 自动确认时间（天）
     */
    private Integer autoConfirmDay;
    /**
     * 收货人姓名
     */
    private String receiverName;
    /**
     * 收货人电话
     */
    private String receiverPhone;
    /**
     * 收货人邮编
     */
    private String receiverPostCode;
    /**
     * 省份/直辖市
     */
    private String receiverProvince;
    /**
     * 城市
     */
    private String receiverCity;
    /**
     * 区
     */
    private String receiverDistrict;
    /**
     * 省份/直辖市id
     */
    private Long receiverProvinceId;
    /**
     * 城市id
     */
    private Long receiverCityId;
    /**
     * 区id
     */
    private Long receiverDistrictId;
    /**
     * 详细地址
     */
    private String receiverDetailAddress;
    /**
     * 订单备注
     */
    private String note;
    /**
     * 商家备注
     */
    private String merchantNote;
    /**
     * 确认收货状态：0->未确认；1->已确认
     */
    private Integer confirmStatus;
    /**
     * 删除状态：0->未删除；1->已删除
     */
    private Integer deleteStatus;
    /**
     * 支付时间
     */
    private Date paymentTime;
    /**
     * 发货时间
     */
    private Date deliveryTime;
    /**
     * 确认收货时间
     */
    private Date receiveTime;

}
